package jax.lang;

/**
 * ...
 * @author tom
 */
class JThrowable {
	public var message:String;
	public var cause:JThrowable;
	public function new (?msg:String, ?cause:JThrowable) {
		message = msg;
		this.cause = cause;
	}
	public function toString() {
		return Type.getClassName(Type.getClass(this)) + ": "+message + ";" + cause == null ? "" : " caused by: "+cause.toString();
	}
}
